package com.liy.cloud.common.system.service.impl;

import com.liy.cloud.common.system.dao.SysLogCmdDao;
import com.liy.cloud.common.system.entity.SysLogCmdEntity;
import com.liy.cloud.common.system.service.SysLogCmdService;
import com.liy.cloud.common.vo.CommandVO;
import com.das.framework.common.dao.IBaseDao;
import com.das.framework.common.service.impl.BaseServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 操作命令下发类 Service接口服务实现
 * 
 * @ClassName: SysLogCmdServiceImpl
 * @Description:
 * @author libs
 * @date: 2018-07-02 13:24:10
 */
@Service
public class SysLogCmdServiceImpl extends BaseServiceImpl<SysLogCmdEntity, String> implements SysLogCmdService {

	@Autowired
	private SysLogCmdDao syslogcmdDao;

	@Override
	public IBaseDao<SysLogCmdEntity, String> getDao() {
		return syslogcmdDao;
	}

	@Override
	public int addSendCommand(CommandVO commandVO) {
		return syslogcmdDao.sendBatchCommand(commandVO);
	}

}